package com.yanqu.road.entity.union.parergon;

import com.yanqu.road.entity.DataObject;

import java.util.Objects;

public class UnionParergonPlayer extends DataObject {
    private long userId;

    private int operateTimes;

    private long lastRestoreTime;

    private long bargainTime;

    private String bargainUnionUId;

    private int todayTimes;

    private int totalTimes;

    private int historyTimes;

    private String dayUnionUId;

    private long dayRestoreTime;

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        if(this.userId != userId) {
            this.userId = userId;
            setUpdateOption();
        }
    }

    public int getOperateTimes() {
        return operateTimes;
    }

    public void setOperateTimes(int operateTimes) {
        if(this.operateTimes != operateTimes) {
            this.operateTimes = operateTimes;
            setUpdateOption();
        }
    }

    public long getLastRestoreTime() {
        return lastRestoreTime;
    }

    public void setLastRestoreTime(long lastRestoreTime) {
        if(this.lastRestoreTime != lastRestoreTime) {
            this.lastRestoreTime = lastRestoreTime;
            setUpdateOption();
        }
    }

    public long getBargainTime() {
        return bargainTime;
    }

    public void setBargainTime(long bargainTime) {
        if(this.bargainTime != bargainTime) {
            this.bargainTime = bargainTime;
            setUpdateOption();
        }
    }

    public String getBargainUnionUId() {
        return bargainUnionUId;
    }

    public void setBargainUnionUId(String bargainUnionUId) {
        if(!Objects.equals(this.bargainUnionUId, bargainUnionUId)) {
            this.bargainUnionUId = bargainUnionUId;
            setUpdateOption();
        }
    }

    public int getTodayTimes() {
        return todayTimes;
    }

    public void setTodayTimes(int todayTimes) {
        if(this.todayTimes != todayTimes) {
            this.todayTimes = todayTimes;
            setUpdateOption();
        }
    }

    public int getTotalTimes() {
        return totalTimes;
    }

    public void setTotalTimes(int totalTimes) {
        if(this.totalTimes != totalTimes) {
            this.totalTimes = totalTimes;
            setUpdateOption();
        }
    }

    public int getHistoryTimes() {
        return historyTimes;
    }

    public void setHistoryTimes(int historyTimes) {
        if(this.historyTimes != historyTimes) {
            this.historyTimes = historyTimes;
            setUpdateOption();
        }
    }

    public String getDayUnionUId() {
        return dayUnionUId;
    }

    public void setDayUnionUId(String dayUnionUId) {
        if(!Objects.equals(this.dayUnionUId, dayUnionUId)) {
            this.dayUnionUId = dayUnionUId;
            setUpdateOption();
        }
    }

    public long getDayRestoreTime() {
        return dayRestoreTime;
    }

    public void setDayRestoreTime(long dayRestoreTime) {
        if(this.dayRestoreTime != dayRestoreTime) {
            this.dayRestoreTime = dayRestoreTime;
            setUpdateOption();
        }
    }
}
